package edu.asu.cse360.client.i18n;

import java.util.Locale;

import org.springframework.context.MessageSource;
/**
 * This class is to resolve the messages. But this is not used
 * @author nadimhoque
 */
public class MessageResolver {

	private Locale locale;
	private MessageSource messageSource;
	
	public MessageResolver(MessageSource messageSource, Locale locale){
		this.messageSource = messageSource;
	}

	public String getMessage(String code){
		return messageSource.getMessage(code, null, locale);
	}

	public void setLocale(Locale locale) {
		this.locale = locale;
	}

	public Locale getLocale() {
		return locale;
	}

}
